home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
A.C.E. 2
/
ACE CD 2.iso
/
FILES
/
UTILS
/
AMOS3.DMS
/
AMOS3.adf
/
RAMOS_Install.AMOS
/
RAMOS_Install.amosSourceCode
< prev
Wrap
AMOS Source Code
|
1978-10-10
|
5KB
|
162 lines
' RAMOS Installation Program
'
' By P.J.Hickman
'
' Please Read This Message:
'
' Run this program alone, without loading any other accessories or
' programs beforehand, you should also go to the SEARCH menu and set
' the text buffer to 5000 bytes to give you the max amount of memory
' for copying the files. When the program refers to 'AMOS:' it means
' your disc marked "AMOS Program Disc", when it refers to 'EXTRAS:'
' the program wants the disc marked "AMOS Extras Disc".
'
' Hard disc users! Run this from floppy disc if you have assigned
' AMOS: to an area of your hard disc.
'
' Have fun and read my new AMOS column in AMIGA COMPUTING, coming soon.
'
Dir$="Df0:"
Default
Screen Close 0
Close Editor
SET_UP_SCREEN
DEF_DRIVE$="df0:"
Dim FILE$(6)
Global DEF_DRIVE$,DISC$,FOLDER$,FILE$(),NAME$
Restore C0PY_DATA
Cls 0
Centre At(,2)+Border$("RAMOS installer V 1.0",2)
Centre At(,5)+"Ensure you have created a blank formatted disc."
Centre At(,9)+"Insert the AMOS Programs disc and"
Centre At(,10)+"press a key to begin."
Clear Key
Wait Key
Cls 0
Repeat
Read DISC$
If DISC$<>"-1"
Read NAME$
Read FOLDER$
TEMP$=DEF_DRIVE$+Left$(FOLDER$,Len(FOLDER$)-1)
Read TIME
For LOP=1 To TIME
Read FILE$(LOP)
FILE_READ[FOLDER$+FILE$(LOP),LOP+5]
Next LOP
PAUSE_FOR_USER
If Not Exist(DEF_DRIVE$)
PAUSE_FOR_USER
End If
If Not Exist(TEMP$)
Mkdir TEMP$
End If
For LOP=1 To TIME
FILE_WRITE[FOLDER$+FILE$(LOP),LOP+5]
Next LOP
End If
Until DISC$="-1"
Cls 0
Centre At(,5)+Border$("Writing Startup-Sequence.......",2)
If Not Exist(DEF_DRIVE$+"s/")
Mkdir DEF_DRIVE$+"s"
End If
Bsave DEF_DRIVE$+"s/Startup-Sequence",Start(5) To Start(5)+Length(5)
Wait 10
Cls 0
Centre At(,1)+"Now go to the CLI and INSTALL your disc."
Centre At(,3)+"This is done by typing the following line from the CLI:"
Centre At(,5)+"Install Df0:"
Centre At(,7)+"The program you want to run automatically from this"
Centre At(,8)+"disc must now be called AUTOEXEC.AMOS"
Centre At(,9)+"and saved into the root directory."
Centre At(,10)+"Press a key to continue."
Clear Key
Wait Key
Cls 0
Centre At(,2)+"Be sure your run-time program creates a default screen"
Centre At(,3)+"before printing any text or creating bobs etc. The default"
Centre At(,4)+"screen is NOT set-up automatically. This is so that you can"
Centre At(,5)+"decide for yourself how you want your program to begin."
Centre At(,10)+"Press a key to end."
Clear Key
Wait Key
Default
Edit
Procedure SET_UP_SCREEN
Screen Open 0,640,100,2,Hires
Flash Off : Curs Off : Cls 0 : Hide On
Palette 0,$FFF
Paper 0
End Proc
Procedure FILE_READ[SOURCE$,BANK]
PAUSE_FOR_DISC[DISC$]
Open In 1,DISC$+SOURCE$
L=Lof(1)
Close
Reserve As Work BANK,L
Cls 0
Centre At(,5)+"READING FILE '"+DISC$+SOURCE$+"'"
Bload DISC$+SOURCE$,Start(BANK)
End Proc
Procedure FILE_WRITE[SOURCE$,BANK]
Cls 0
Centre At(,5)+"WRITING FILE 'DF0:"+SOURCE$+"'"
Bsave DEF_DRIVE$+SOURCE$,Start(BANK) To Start(BANK)+Length(BANK)
Erase BANK
End Proc
Procedure PAUSE_FOR_DISC[D$]
While Not Exist(D$)
Boom
Cls 0
Centre At(,5)+Border$("Insert the "+NAME$+" disc into any drive!",2)
Repeat
Until Exist(D$)
Clear Key
Wend
End Proc
Procedure PAUSE_FOR_USER
Bell
Cls 0
Centre At(,5)+Border$("Insert your OWN disc into "+DEF_DRIVE$,2)
Centre At(,9)+"Press any key when ready"
Wait 20
Clear Key
Repeat
Until Exist(DEF_DRIVE$) and(Inkey$<>"" or Mouse Click)
Clear Key
End Proc
' disc, folder, amount of proggies to copy
C0PY_DATA:
Data "AMOS:","AMOS Programs Disc","AMOS_System/",6
Data "Compact"
Data "Default.Font"
Data "Default.Key"
Data "Mouse.Abk"
Data "Music"
Data "Request"
Data "AMOS:","AMOS Programs Disc","c/",2
Data "DiskChange"
Data "Mount"
Data "AMOS:","AMOS Programs Disc","devs/",5
Data "Narrator.Device"
Data "Parallel.Device"
Data "Printer.Device"
Data "Serial.Device"
Data "System-Configuration"
Data "AMOS:","AMOS Programs Disc","libs/",5
Data "Diskfont.Library"
Data "Icon.Library"
Data "Mathieeedoubbas.Library"
Data "Mathtrans.Library"
Data "Translator.Library"
Data "AMOS:","AMOS Programs Disc","l/",4
Data "Disk-Validator"
Data "Fastfilesystem"
Data "Port-Handler"
Data "Speak-Handler"
Data "EXTRAS:","AMOS Extras Disc","AMOS_System/",1
Data "RAMOS.Env"
Data "EXTRAS:","AMOS Extras Disc","",1
Data "RAMOS"
Data "-1"